require 'capistrano-db-tasks'

server '47.99.187.83', user: 'root', roles: %w{app web db}
set :rails_env, 'production'
set :application, 'pipup-lms-be'
set :deploy_to, '/var/www/pipup-lms-be-production'
set :puma_bind, %w(tcp://0.0.0.0:3010 unix:///var/www/pipup-lms-be-production/shared/tmp/sockets/puma.sock)
set :puma_threads, [2,8]
set :puma_workers, 2
set :puma_preload_app, false
set :branch, 'master'
set :puma_default_hooks, -> { true }
set :rvm_type, :system
set :rvm_ruby_version, '2.7.2'

# set :sidekiq_monit_conf_dir, -> { '/etc/monit.d' }
# set :sidekiq_default_hooks,  -> { false }

append :rvm_map_bins, 'rails'
set :db_local_clean, true
# 禁止推
set :disallow_pushing, true
# set :db_ignore_tables, [:admin_users]
# set :db_ignore_data_tables, [:admin_users]